import request from '@/config/axios'

export const getUserRole = (data?: any): Promise<IResponse<any>> => {
  return request.post({ url: '/api/admin/user_role_select', data })
}

export const updateUserRole = (data?: any): Promise<IResponse<any>> => {
  return request.post({ url: '/api/admin/update_user_role_select', data })
}

export const getRoleMenu = (data?: any): Promise<IResponse<any>> => {
  return request.post({ url: '/api/admin/role_menu_select', data })
}

export const updateRoleMenu = (data?: any): Promise<IResponse<any>> => {
  return request.post({ url: '/api/admin/update_role_menu_select', data })
}
